.class public Lcom/waiqin365/base/db/offlinedata/d;
.super Ljava/lang/Object;


# static fields
.field private static e:Lcom/waiqin365/base/db/offlinedata/d;


# instance fields
.field private a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

.field private b:Lcom/waiqin365/base/db/offlinedata/CmdisttabDao;

.field private c:Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;

.field private d:Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

.field private f:Landroid/content/Context;

.field private g:I

.field private h:I


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private a(Lcom/waiqin365/base/db/offlinedata/a;)Lcom/waiqin365/base/db/cmfilteritem/a;
    .locals 3

    if-eqz p1, :cond_0

    new-instance v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-direct {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/a;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/a;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    new-instance v1, Ljava/util/ArrayList;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v1, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(Lcom/waiqin365/base/db/offlinedata/c;)Lcom/waiqin365/base/db/cmfilteritem/a;
    .locals 3

    if-eqz p1, :cond_0

    new-instance v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-direct {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/c;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/c;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/c;->c()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->c:Ljava/lang/String;

    new-instance v1, Ljava/util/ArrayList;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v1, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;
    .locals 2

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/base/db/offlinedata/d;

    invoke-direct {v0}, Lcom/waiqin365/base/db/offlinedata/d;-><init>()V

    sput-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    :cond_0
    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/offlinedata/d;->f:Landroid/content/Context;

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/p;->g()Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/p;->i()Lcom/waiqin365/base/db/offlinedata/CmdisttabDao;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/offlinedata/d;->b:Lcom/waiqin365/base/db/offlinedata/CmdisttabDao;

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/p;->h()Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/offlinedata/d;->c:Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/p;->j()Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/base/db/offlinedata/d;->d:Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

    sget-object v0, Lcom/waiqin365/base/db/offlinedata/d;->e:Lcom/waiqin365/base/db/offlinedata/d;

    return-object v0
.end method

.method private a(Lcom/waiqin365/base/db/offlinedata/b;Ljava/util/ArrayList;Ljava/lang/String;Z)Lcom/waiqin365/lightapp/kehu/b/am;
    .locals 9

    const/4 v8, 0x0

    if-eqz p1, :cond_4

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->i()Ljava/lang/String;

    move-result-object v0

    if-eqz p2, :cond_1

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    if-eqz v0, :cond_1

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v0, 0x1

    invoke-virtual {p2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v0

    const/4 v2, 0x0

    invoke-virtual {p2, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->k()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->j()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v6

    invoke-static/range {v0 .. v7}, Lcom/waiqin365/lightapp/kehu/c/b;->a(DDDD)D

    move-result-wide v2

    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->f:Landroid/content/Context;

    const-string/jumbo v1, "nearby_max"

    const-wide/16 v4, 0xbb8

    invoke-static {v0, v1, v4, v5}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;J)J

    move-result-wide v0

    long-to-double v0, v0

    cmpl-double v0, v2, v0

    if-ltz v0, :cond_0

    if-eqz p4, :cond_0

    move-object v0, v8

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->b()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->c()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->d()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->e()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->f()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->i()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->n()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->o()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->o:Ljava/lang/String;

    double-to-int v1, v2

    iput v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->p:I

    goto :goto_0

    :cond_1
    if-eqz p4, :cond_3

    if-eqz v0, :cond_2

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_3

    :cond_2
    move-object v0, v8

    goto :goto_0

    :cond_3
    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->b()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->c()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->d()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->e()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->f()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->i()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->n()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/b;->o()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->o:Ljava/lang/String;

    goto/16 :goto_0

    :cond_4
    move-object v0, v8

    goto/16 :goto_0
.end method

.method private a(Lcom/waiqin365/base/db/offlinedata/o;)Lcom/waiqin365/lightcrm/linkman/a/a;
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    if-eqz p1, :cond_1

    new-instance v0, Lcom/waiqin365/lightcrm/linkman/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightcrm/linkman/a/a;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->b()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->h:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->c()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->b:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->q()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->q:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->d()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->o:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->e()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->j:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->f()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->i:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->a:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->g()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->l:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->h()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->d:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->i()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->e:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->j()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->c:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->p()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->p:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->k()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->n:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->l()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->k:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->m()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->g:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->n()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->f:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->o()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->m:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/o;->r()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->r:Ljava/lang/String;

    const-string/jumbo v1, "#"

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->s:Ljava/lang/String;

    iget-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->p:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->p:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->p:Ljava/lang/String;

    invoke-virtual {v1, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "^[A-Za-z]+$"

    invoke-virtual {v1, v2}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->p:Ljava/lang/String;

    invoke-virtual {v1, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    sget-object v2, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v1, v2}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightcrm/linkman/a/a;->s:Ljava/lang/String;

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private b(Lcom/waiqin365/base/db/offlinedata/c;)Lcom/waiqin365/base/db/cmfilteritem/a;
    .locals 3

    if-eqz p1, :cond_0

    new-instance v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-direct {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;-><init>()V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/c;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/c;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    new-instance v1, Ljava/util/ArrayList;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v1, v0, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private declared-synchronized b(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    .locals 8

    const/4 v2, 0x0

    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    new-instance v3, Ljava/util/ArrayList;

    const/4 v0, 0x1

    invoke-direct {v3, v0}, Ljava/util/ArrayList;-><init>(I)V

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v0, "select a.* from cmtab a where 1=1 "

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string/jumbo v0, "cooperate_status"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "all"

    const-string/jumbo v1, "cooperate_status"

    invoke-virtual {p1, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    const-string/jumbo v0, " and a.cooperate_status != \'0\' and a.cooperate_status !=\'\'"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_1
    const-string/jumbo v0, "approvaled"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    if-eqz v0, :cond_2

    const-string/jumbo v1, "true"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string/jumbo v0, " and a.approval_status !=\'2\' "

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2
    const-string/jumbo v0, "tradeType"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string/jumbo v1, "model_type"

    invoke-virtual {p1, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-nez v1, :cond_3

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_3

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v7, " and a.trade_type = \'"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "\' "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_3
    const-string/jumbo v0, "queryStr"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_4

    const-string/jumbo v1, "\'"

    const-string/jumbo v7, ""

    invoke-virtual {v0, v1, v7}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v7, "and( a.code like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' or a.name like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' or a.name_py like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' or a.addr like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' "

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string/jumbo v1, "or a.id in(select distinct cm_id from linkmantab b where 1 = 1 and ("

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v7, " b.name like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' or b.name_py like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v7, "%\' or b.mobile like \'%"

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "%\' )))"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_4
    const-string/jumbo v0, " order by a.name_py asc "

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p2, :cond_5

    if-nez p3, :cond_5

    const-string/jumbo v0, "page.currentPage"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v7, " limit 10 offset "

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    add-int/lit8 v0, v0, -0x1

    mul-int/lit8 v0, v0, 0xa

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_5
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->getSession()Lde/greenrobot/dao/AbstractDaoSession;

    move-result-object v1

    invoke-virtual {v1}, Lde/greenrobot/dao/AbstractDaoSession;->getDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    const/4 v6, 0x0

    invoke-virtual {v1, v0, v6}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_7

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v1

    if-lez v1, :cond_7

    if-eqz p3, :cond_6

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v0

    iput v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->g:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-object v0, v2

    :goto_0
    monitor-exit p0

    return-object v0

    :cond_6
    :goto_1
    :try_start_1
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_8

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    const-string/jumbo v2, "id"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    const-string/jumbo v2, "trade_type"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    const-string/jumbo v2, "code"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    const-string/jumbo v2, "name"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    const-string/jumbo v2, "name_py"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    const-string/jumbo v2, "addr"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    const-string/jumbo v2, "location"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    const-string/jumbo v2, "approval_status"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    const-string/jumbo v2, "delivery_addr"

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->o:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_7
    const/4 v0, 0x0

    :try_start_2
    iput v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->g:I

    :cond_8
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "query time ="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    sub-long v4, v6, v4

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-object v0, v3

    goto/16 :goto_0
.end method

.method private declared-synchronized c(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    .locals 12

    const v11, 0x7fffffff

    const/4 v1, 0x0

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->d:Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v4

    const-string/jumbo v0, ""

    const-string/jumbo v2, ""

    if-eqz p1, :cond_7

    const-string/jumbo v3, "currentPage"

    invoke-virtual {p1, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_7

    const-string/jumbo v0, "currentPage"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    move-object v3, v0

    :goto_0
    if-eqz p1, :cond_6

    const-string/jumbo v0, "searchKey"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string/jumbo v0, "searchKey"

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_1
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    sget-object v2, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->j:Lde/greenrobot/dao/Property;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v6, "%"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "%"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v2

    sget-object v5, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->q:Lde/greenrobot/dao/Property;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v7, "%"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string/jumbo v7, "%"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v5

    const/4 v6, 0x1

    new-array v6, v6, [Lde/greenrobot/dao/query/WhereCondition;

    const/4 v7, 0x0

    sget-object v8, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->i:Lde/greenrobot/dao/Property;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v10, "%"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v9, "%"

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8, v0}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v0

    aput-object v0, v6, v7

    invoke-virtual {v4, v2, v5, v6}, Lde/greenrobot/dao/query/QueryBuilder;->whereOr(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_0
    const/4 v0, 0x1

    new-array v0, v0, [Lde/greenrobot/dao/Property;

    const/4 v2, 0x0

    sget-object v5, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->p:Lde/greenrobot/dao/Property;

    aput-object v5, v0, v2

    invoke-virtual {v4, v0}, Lde/greenrobot/dao/query/QueryBuilder;->orderAsc([Lde/greenrobot/dao/Property;)Lde/greenrobot/dao/query/QueryBuilder;

    if-nez p3, :cond_1

    if-eqz p2, :cond_1

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x1

    invoke-static {v3, v0}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    const v2, 0x7fffffff

    invoke-virtual {v4, v2}, Lde/greenrobot/dao/query/QueryBuilder;->limit(I)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v2

    add-int/lit8 v0, v0, -0x1

    mul-int/2addr v0, v11

    invoke-virtual {v2, v0}, Lde/greenrobot/dao/query/QueryBuilder;->offset(I)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_1
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual {v4}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_2

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_2

    if-eqz p3, :cond_3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    iput v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->h:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_2
    :goto_2
    monitor-exit p0

    return-object v2

    :cond_3
    :goto_3
    :try_start_1
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_5

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/o;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/base/db/offlinedata/o;)Lcom/waiqin365/lightcrm/linkman/a/a;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_4
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_3

    :cond_5
    new-instance v0, Lcom/waiqin365/base/db/offlinedata/f;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/db/offlinedata/f;-><init>(Lcom/waiqin365/base/db/offlinedata/d;)V

    invoke-static {v2, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_6
    move-object v0, v2

    goto/16 :goto_1

    :cond_7
    move-object v3, v0

    goto/16 :goto_0
.end method


# virtual methods
.method public declared-synchronized a()J
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->count()J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v0

    monitor-exit p0

    return-wide v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Ljava/lang/String;)Lcom/waiqin365/lightcrm/linkman/a/a;
    .locals 6

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->d:Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->c:Lde/greenrobot/dao/Property;

    invoke-virtual {v1, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Lde/greenrobot/dao/query/WhereCondition;

    const/4 v3, 0x0

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao$Properties;->g:Lde/greenrobot/dao/Property;

    const-string/jumbo v5, "1"

    invoke-virtual {v4, v5}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {v0, v1, v2}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    invoke-virtual {v0}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/o;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/base/db/offlinedata/o;)Lcom/waiqin365/lightcrm/linkman/a/a;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    :goto_0
    monitor-exit p0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 6

    const/4 v0, 0x0

    monitor-enter p0

    :try_start_0
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    if-eqz p2, :cond_2

    const-string/jumbo v3, ","

    invoke-virtual {p2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_2

    const/16 v3, 0x2c

    invoke-static {p2, v3, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    :cond_0
    :goto_0
    iget-object v3, p0, Lcom/waiqin365/base/db/offlinedata/d;->c:Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;

    invoke-virtual {v3}, Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v3

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/CmtypetabDao$Properties;->d:Lde/greenrobot/dao/Property;

    invoke-virtual {v4, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v4

    const/4 v5, 0x0

    new-array v5, v5, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v3, v4, v5}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v3

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/CmtypetabDao$Properties;->c:Lde/greenrobot/dao/Property;

    invoke-virtual {v4, v1}, Lde/greenrobot/dao/Property;->in(Ljava/util/Collection;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v3, v1, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    move v1, v0

    :goto_1
    if-eqz v3, :cond_3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/c;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/base/db/offlinedata/c;)Lcom/waiqin365/base/db/cmfilteritem/a;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_2
    if-eqz p2, :cond_0

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_3
    :try_start_1
    new-instance v0, Lcom/waiqin365/base/db/offlinedata/g;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/db/offlinedata/g;-><init>(Lcom/waiqin365/base/db/offlinedata/d;)V

    invoke-static {v2, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object v2
.end method

.method public declared-synchronized a(Ljava/util/HashMap;)Ljava/util/ArrayList;
    .locals 2

    monitor-enter p0

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    invoke-virtual {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->a(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    .locals 20

    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    new-instance v5, Ljava/util/ArrayList;

    const/4 v2, 0x1

    invoke-direct {v5, v2}, Ljava/util/ArrayList;-><init>(I)V

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v7

    const/4 v2, 0x0

    const-string/jumbo v3, "nearCustomer"

    const-string/jumbo v4, "nearCustomer"

    move-object/from16 v0, p1

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_12

    const/4 v2, 0x1

    move v6, v2

    :goto_0
    const-string/jumbo v2, "shortcutKey"

    move-object/from16 v0, p1

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v4

    invoke-virtual {v4}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/login/mainview/a;->o(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    const-string/jumbo v4, "my"

    invoke-virtual {v4, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_0

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->l:Lde/greenrobot/dao/Property;

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v11, "%"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v10, "%"

    invoke-virtual {v3, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_0
    const-string/jumbo v3, "cooperate_status"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string/jumbo v3, "all"

    const-string/jumbo v4, "cooperate_status"

    move-object/from16 v0, p1

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    :cond_1
    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->m:Lde/greenrobot/dao/Property;

    const-string/jumbo v4, "0"

    invoke-virtual {v3, v4}, Lde/greenrobot/dao/Property;->notEq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_2
    const-string/jumbo v3, "approvaled"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    if-eqz v3, :cond_3

    const-string/jumbo v4, "true"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->n:Lde/greenrobot/dao/Property;

    const-string/jumbo v4, "2"

    invoke-virtual {v3, v4}, Lde/greenrobot/dao/Property;->notEq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_3
    const-string/jumbo v3, "tradeType"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    const-string/jumbo v4, "model_type"

    move-object/from16 v0, p1

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    if-nez v4, :cond_4

    if-eqz v3, :cond_4

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v10

    if-lez v10, :cond_4

    sget-object v10, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->b:Lde/greenrobot/dao/Property;

    invoke-virtual {v10, v3}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v10, 0x0

    new-array v10, v10, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v10}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_4
    const-string/jumbo v3, "nearbyStr"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_5

    const-string/jumbo v10, ","

    invoke-virtual {v3, v10}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    sget-object v10, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v10, v3}, Lde/greenrobot/dao/Property;->notIn([Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v10, 0x0

    new-array v10, v10, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v10}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_5
    const-string/jumbo v3, "queryStr"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    if-eqz v3, :cond_6

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v10

    if-lez v10, :cond_6

    const-string/jumbo v10, "\'"

    const-string/jumbo v11, ""

    invoke-virtual {v3, v10, v11}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    sget-object v10, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->c:Lde/greenrobot/dao/Property;

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v12, "%"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string/jumbo v12, "%"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v10

    sget-object v11, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->d:Lde/greenrobot/dao/Property;

    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v13, "%"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string/jumbo v13, "%"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v11

    const/4 v12, 0x2

    new-array v12, v12, [Lde/greenrobot/dao/query/WhereCondition;

    const/4 v13, 0x0

    sget-object v14, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->e:Lde/greenrobot/dao/Property;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v16, "%"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string/jumbo v16, "%"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v14

    aput-object v14, v12, v13

    const/4 v13, 0x1

    sget-object v14, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->f:Lde/greenrobot/dao/Property;

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v16, "%"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v15, "%"

    invoke-virtual {v3, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v14, v3}, Lde/greenrobot/dao/Property;->like(Ljava/lang/String;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    aput-object v3, v12, v13

    invoke-virtual {v7, v10, v11, v12}, Lde/greenrobot/dao/query/QueryBuilder;->whereOr(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_6
    const-string/jumbo v3, "queryDistId"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    if-eqz v3, :cond_7

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v10

    if-lez v10, :cond_7

    const-string/jumbo v10, "-1"

    invoke-virtual {v10, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_7

    const-string/jumbo v10, ","

    invoke-virtual {v3, v10}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    sget-object v10, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->h:Lde/greenrobot/dao/Property;

    invoke-virtual {v10, v3}, Lde/greenrobot/dao/Property;->in([Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v10, 0x0

    new-array v10, v10, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v10}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_7
    const-string/jumbo v3, "queryTypeId"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    if-eqz v3, :cond_8

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v10

    if-lez v10, :cond_8

    const-string/jumbo v10, "-1"

    invoke-virtual {v10, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_8

    sget-object v10, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->g:Lde/greenrobot/dao/Property;

    invoke-virtual {v10, v3}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v10, 0x0

    new-array v10, v10, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v7, v3, v10}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_8
    const-string/jumbo v3, "queryPos"

    move-object/from16 v0, p1

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    const/16 v11, 0x2c

    invoke-static {v3, v11, v10}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {v10}, Ljava/util/ArrayList;->size()I

    move-result v11

    const/4 v12, 0x2

    if-ne v11, v12, :cond_c

    if-eqz v6, :cond_9

    sget-object v11, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->j:Lde/greenrobot/dao/Property;

    const/4 v3, 0x0

    invoke-virtual {v10, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v12

    const-wide/high16 v14, 0x3fe0000000000000L    # 0.5

    sub-double/2addr v12, v14

    invoke-static {v12, v13}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v12

    const/4 v3, 0x0

    invoke-virtual {v10, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v14

    const-wide/high16 v16, 0x3fe0000000000000L    # 0.5

    add-double v14, v14, v16

    invoke-static {v14, v15}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {v11, v12, v3}, Lde/greenrobot/dao/Property;->between(Ljava/lang/Object;Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v11

    const/4 v3, 0x1

    new-array v12, v3, [Lde/greenrobot/dao/query/WhereCondition;

    const/4 v13, 0x0

    sget-object v14, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->k:Lde/greenrobot/dao/Property;

    const/4 v3, 0x1

    invoke-virtual {v10, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v16

    const-wide/high16 v18, 0x3fe0000000000000L    # 0.5

    sub-double v16, v16, v18

    invoke-static/range {v16 .. v17}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v15

    const/4 v3, 0x1

    invoke-virtual {v10, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v16

    const-wide/high16 v18, 0x3fe0000000000000L    # 0.5

    add-double v16, v16, v18

    invoke-static/range {v16 .. v17}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {v14, v15, v3}, Lde/greenrobot/dao/Property;->between(Ljava/lang/Object;Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    aput-object v3, v12, v13

    invoke-virtual {v7, v11, v12}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_9
    const-string/jumbo v3, "near"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_a

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, " (abs("

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/4 v2, 0x0

    invoke-virtual {v10, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, "-"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->j:Lde/greenrobot/dao/Property;

    iget-object v3, v3, Lde/greenrobot/dao/Property;->columnName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ") + abs("

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/4 v2, 0x1

    invoke-virtual {v10, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, "-"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->k:Lde/greenrobot/dao/Property;

    iget-object v3, v3, Lde/greenrobot/dao/Property;->columnName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ")) asc "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v7, v2}, Lde/greenrobot/dao/query/QueryBuilder;->orderRaw(Ljava/lang/String;)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_a
    :goto_1
    const/4 v2, 0x1

    new-array v2, v2, [Lde/greenrobot/dao/Property;

    const/4 v3, 0x0

    sget-object v11, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->e:Lde/greenrobot/dao/Property;

    aput-object v11, v2, v3

    invoke-virtual {v7, v2}, Lde/greenrobot/dao/query/QueryBuilder;->orderAsc([Lde/greenrobot/dao/Property;)Lde/greenrobot/dao/query/QueryBuilder;

    if-eqz p2, :cond_b

    if-nez p3, :cond_b

    const-string/jumbo v2, "page.currentPage"

    move-object/from16 v0, p1

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const/4 v3, 0x1

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v2

    const/16 v3, 0xa

    invoke-virtual {v7, v3}, Lde/greenrobot/dao/query/QueryBuilder;->limit(I)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v3

    add-int/lit8 v2, v2, -0x1

    mul-int/lit8 v2, v2, 0xa

    invoke-virtual {v3, v2}, Lde/greenrobot/dao/query/QueryBuilder;->offset(I)Lde/greenrobot/dao/query/QueryBuilder;

    :cond_b
    invoke-virtual {v7}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v7

    if-eqz v7, :cond_10

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_10

    if-eqz p3, :cond_d

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v2

    move-object/from16 v0, p0

    iput v2, v0, Lcom/waiqin365/base/db/offlinedata/d;->g:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v2, 0x0

    :goto_2
    monitor-exit p0

    return-object v2

    :cond_c
    :try_start_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v11, "queryCustomerData near queryPos="

    invoke-virtual {v2, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v2

    monitor-exit p0

    throw v2

    :cond_d
    const/4 v2, 0x0

    move v3, v2

    :goto_3
    :try_start_2
    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v2

    if-ge v3, v2, :cond_11

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/base/db/offlinedata/b;

    move-object/from16 v0, p0

    invoke-direct {v0, v2, v10, v4, v6}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/base/db/offlinedata/b;Ljava/util/ArrayList;Ljava/lang/String;Z)Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    if-eqz v2, :cond_f

    iget v11, v2, Lcom/waiqin365/lightapp/kehu/b/am;->p:I

    const/4 v12, -0x1

    if-ne v11, v12, :cond_e

    const v11, 0x7fffffff

    iput v11, v2, Lcom/waiqin365/lightapp/kehu/b/am;->p:I

    :cond_e
    invoke-virtual {v5, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_f
    new-instance v2, Lcom/waiqin365/base/db/offlinedata/e;

    move-object/from16 v0, p0

    invoke-direct {v2, v0}, Lcom/waiqin365/base/db/offlinedata/e;-><init>(Lcom/waiqin365/base/db/offlinedata/d;)V

    invoke-static {v5, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_3

    :cond_10
    const/4 v2, 0x0

    move-object/from16 v0, p0

    iput v2, v0, Lcom/waiqin365/base/db/offlinedata/d;->g:I

    :cond_11
    sget-object v2, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "query time ="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    sub-long/2addr v6, v8

    invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-object v2, v5

    goto :goto_2

    :cond_12
    move v6, v2

    goto/16 :goto_0
.end method

.method public a(Lcom/waiqin365/lightapp/kehu/b/am;)Z
    .locals 4

    if-eqz p1, :cond_0

    new-instance v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-direct {v0}, Lcom/waiqin365/base/db/offlinedata/b;-><init>()V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->a(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->b(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->c(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->d(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->e(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->f(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->g:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->g(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->h:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->h(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->i(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->j(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->k:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->k(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->l:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->l(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->m:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->m(Ljava/lang/String;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->n(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->insertOrReplace(Ljava/lang/Object;)J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public declared-synchronized b()J
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->d:Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/LinkmantabDao;->count()J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v0

    monitor-exit p0

    return-wide v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized b(Ljava/util/HashMap;)Ljava/util/ArrayList;
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    const/4 v1, 0x0

    :try_start_0
    invoke-virtual {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->a(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized b(Ljava/lang/String;)Z
    .locals 3

    monitor-enter p0

    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    sget-object v1, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v1, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v2, 0x0

    new-array v2, v2, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v0, v1, v2}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lde/greenrobot/dao/query/QueryBuilder;->buildDelete()Lde/greenrobot/dao/query/DeleteQuery;

    move-result-object v0

    invoke-virtual {v0}, Lde/greenrobot/dao/query/DeleteQuery;->executeDeleteWithoutDetachingEntities()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    const/4 v0, 0x1

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 7

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz p2, :cond_0

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    const-string/jumbo v0, ","

    invoke-virtual {p2, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    const/16 v1, 0x2c

    invoke-static {p2, v1, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/4 v5, 0x2

    if-ne v1, v5, :cond_0

    :try_start_0
    sget-object v1, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v1, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v5, 0x0

    new-array v5, v5, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v0, v1, v5}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v5

    if-eqz v5, :cond_0

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x0

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0, p2}, Lcom/waiqin365/base/db/offlinedata/b;->i(Ljava/lang/String;)V

    const/4 v0, 0x0

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    const/4 v1, 0x0

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->j(Ljava/lang/String;)V

    const/4 v0, 0x0

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    const/4 v1, 0x1

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/b;->k(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    const/4 v0, 0x1

    new-array v4, v0, [Lcom/waiqin365/base/db/offlinedata/b;

    const/4 v6, 0x0

    const/4 v0, 0x0

    invoke-interface {v5, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    aput-object v0, v4, v6

    invoke-virtual {v1, v4}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->insertOrReplaceInTx([Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move v0, v2

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_0
    move v0, v3

    goto :goto_0
.end method

.method public declared-synchronized c(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/b/am;
    .locals 5

    const/4 v0, 0x0

    const/4 v1, 0x0

    monitor-enter p0

    :try_start_0
    invoke-static {p1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v2

    if-eqz v2, :cond_1

    :cond_0
    monitor-exit p0

    return-object v0

    :cond_1
    :try_start_1
    iget-object v2, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v2

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v3, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v2, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v2

    invoke-virtual {v2}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    :goto_0
    if-eqz v3, :cond_0

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_0

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->b()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->c()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->d()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->e()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->f()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->g()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->g:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->h()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->h:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->i()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->j()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->j:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->k()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->k:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->l()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->l:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->m()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->m:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->n()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->o()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/am;->o:Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    move-object v0, v2

    goto/16 :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized c()Ljava/util/ArrayList;
    .locals 6

    const/4 v0, 0x0

    monitor-enter p0

    :try_start_0
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->c:Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/CmtypetabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    const/4 v3, 0x1

    new-array v3, v3, [Lde/greenrobot/dao/Property;

    const/4 v4, 0x0

    sget-object v5, Lcom/waiqin365/base/db/offlinedata/CmtypetabDao$Properties;->b:Lde/greenrobot/dao/Property;

    aput-object v5, v3, v4

    invoke-virtual {v1, v3}, Lde/greenrobot/dao/query/QueryBuilder;->orderAsc([Lde/greenrobot/dao/Property;)Lde/greenrobot/dao/query/QueryBuilder;

    invoke-virtual {v1}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_1

    move v1, v0

    :goto_0
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/c;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/db/offlinedata/d;->b(Lcom/waiqin365/base/db/offlinedata/c;)Lcom/waiqin365/base/db/cmfilteritem/a;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    monitor-exit p0

    return-object v2

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized c(Ljava/util/HashMap;)Ljava/util/ArrayList;
    .locals 2

    monitor-enter p0

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    invoke-direct {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->b(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public c(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 7

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz p2, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v3, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v0, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x0

    invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0, p2}, Lcom/waiqin365/base/db/offlinedata/b;->f(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    const/4 v0, 0x1

    new-array v5, v0, [Lcom/waiqin365/base/db/offlinedata/b;

    const/4 v6, 0x0

    const/4 v0, 0x0

    invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    aput-object v0, v5, v6

    invoke-virtual {v4, v5}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->insertOrReplaceInTx([Ljava/lang/Object;)V
    :try_end_0
    .catch Landroid/database/SQLException; {:try_start_0 .. :try_end_0} :catch_0

    move v0, v1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_0
    move v0, v2

    goto :goto_0
.end method

.method public declared-synchronized d(Ljava/util/HashMap;)I
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    const/4 v1, 0x1

    :try_start_0
    invoke-direct {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->b(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;

    iget v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->g:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized d(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 5

    const/4 v0, 0x0

    monitor-enter p0

    :try_start_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/waiqin365/base/db/offlinedata/d;->a:Lcom/waiqin365/base/db/offlinedata/CmtabDao;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/offlinedata/CmtabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v2

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_2

    const-string/jumbo v1, ","

    invoke-virtual {p1, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/CmtabDao$Properties;->a:Lde/greenrobot/dao/Property;

    invoke-virtual {v4, v1}, Lde/greenrobot/dao/Property;->in([Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v2, v1, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v1

    move-object v2, v1

    :goto_0
    if-eqz v2, :cond_1

    move v1, v0

    :goto_1
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    new-instance v4, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->b()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->c()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->c:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->d()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->e()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->e:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->f()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->g()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->g:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->h()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->h:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->i()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->j()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->j:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->k()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->k:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->l()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->l:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->m()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->m:Ljava/lang/String;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/b;->n()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/kehu/b/am;->n:Ljava/lang/String;

    if-eqz v4, :cond_0

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_1

    :cond_1
    monitor-exit p0

    return-object v3

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_2
    move-object v2, v1

    goto/16 :goto_0
.end method

.method public d(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    :try_start_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "update cmtab set approval_status=\'"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "\' where id in ("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->f:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/p;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/p;->a()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public declared-synchronized e(Ljava/util/HashMap;)I
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    const/4 v1, 0x1

    :try_start_0
    invoke-virtual {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->a(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;

    iget v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->g:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized e(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 6

    const/4 v0, 0x0

    monitor-enter p0

    :try_start_0
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/base/db/offlinedata/d;->b:Lcom/waiqin365/base/db/offlinedata/CmdisttabDao;

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/CmdisttabDao;->queryBuilder()Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    sget-object v3, Lcom/waiqin365/base/db/offlinedata/CmdisttabDao$Properties;->c:Lde/greenrobot/dao/Property;

    invoke-virtual {v3, p1}, Lde/greenrobot/dao/Property;->eq(Ljava/lang/Object;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v1, v3, v4}, Lde/greenrobot/dao/query/QueryBuilder;->where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    const/4 v3, 0x1

    new-array v3, v3, [Lde/greenrobot/dao/Property;

    const/4 v4, 0x0

    sget-object v5, Lcom/waiqin365/base/db/offlinedata/CmdisttabDao$Properties;->b:Lde/greenrobot/dao/Property;

    aput-object v5, v3, v4

    invoke-virtual {v1, v3}, Lde/greenrobot/dao/query/QueryBuilder;->orderAsc([Lde/greenrobot/dao/Property;)Lde/greenrobot/dao/query/QueryBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lde/greenrobot/dao/query/QueryBuilder;->list()Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_1

    move v1, v0

    :goto_0
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/a;

    invoke-direct {p0, v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/base/db/offlinedata/a;)Lcom/waiqin365/base/db/cmfilteritem/a;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    monitor-exit p0

    return-object v2

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized f(Ljava/util/HashMap;)Ljava/util/ArrayList;
    .locals 2

    monitor-enter p0

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    invoke-direct {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized g(Ljava/util/HashMap;)I
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    const/4 v1, 0x1

    :try_start_0
    invoke-direct {p0, p1, v0, v1}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/util/HashMap;ZZ)Ljava/util/ArrayList;

    iget v0, p0, Lcom/waiqin365/base/db/offlinedata/d;->h:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
